require 'active_record/fixtures'

class GregsTweaks < ActiveRecord::Migration
  def self.up     
    
    create_table :roles_users, :id => false do |t|
        t.column :user_id, :integer
        t.column :role_id, :integer 
    end
        
    Form.delete_all()
    
    directory = File.join(File.dirname(__FILE__), "init_fixtures")
    Fixtures.create_fixtures(directory, "roles_users")  
    
  end

  def self.down  
    Form.delete_all()
    drop_table :roles_users 
  end
end
